//
//  UIView+LLAdd.h
//  Receipt
//
//  Created by admin on 2019/6/27.
//  Copyright © 2019 admin. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    VerticalDirection,
    HorizontalDirection,
} GradientDirection;

NS_ASSUME_NONNULL_BEGIN

@interface UIView (LLAdd)



/**
 设置渐变色
 
 @param colors 渐变的颜色数组
 @param direction 渐变色的方向
 */
- (void)addGradientRampWithColors:(NSArray<UIColor *> *)colors colorDirection:(GradientDirection)direction;


// 显示在哪个视图上
- (void)showInView:(nullable UIView *)inView animationDuration:(CGFloat)duration;


// 移除
- (void)dismissWithAnimationDuration:(CGFloat)duration;



@end

NS_ASSUME_NONNULL_END
